﻿@model Sprint1.Models.QuestionPoll

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Question</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Text)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Text)
            @Html.ValidationMessageFor(model => model.Text)
        </div>
        <div class="form-fields">
            <table>
                <tr>
                    <th>
                        <label for="id_NOA">Number of Options : </label>
                    </th>
                    <td>
                        <select name="NOA" id="id_NOA">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            <option value="10">10</option>
                        </select>
                    </td>
                </tr>
                <tr class="app_rate">
                    <th>
                        <label>Option :</label>
                    </th>
                    <td>
                        <input type="text" name="Ar" />
                    </td>
                </tr>
            </table>
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back", "Index", new { courseId = Url.RequestContext.RouteData.Values["courseId"] })
</div>

@section Scripts {
    @Scripts.Render("~/Scripts/createPolls.js")
}

